#include<stdio.h>

/*
真题练习
    把C_STUDY/c-logo.png拷贝到C_STUDY/Files/文件夹中
*/
int main()
{
    FILE *file1 = fopen("../c-logo.png","rb");//打开c-logo

    FILE *file2 = fopen("../Files/c-copy-logo.png","wb");//新建拷贝文件

    char arr[1024];
    int n;
    while ((n = fread(arr,1,1024,file1)) != 0)
    {
        fwrite(arr,1,n,file2);
    }
    fclose(file1);
    fclose(file2);

    return 0;
}